<?php /* Smarty version 2.6.20, created on 2017-06-04 13:34:49
         compiled from shop_reserve.htm */ ?>

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>待定信息</title>
    <script type="text/javascript" src="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/wap/js/jquery-min.js"></script>
    <script type="text/javascript" src="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/wap/js/public_js_function.js"></script>
    <link type="text/css" href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/wap/new_css/indexamazeui.css" rel="stylesheet" />
    <link type="text/css" href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/wap/new_css/m_base.css" rel="stylesheet" />
    <link type="text/css" href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/wap/new_css/order.css" rel="stylesheet" />
</head>
<body>
<style>
    .header_top {
        height: 50px;
        padding: 10px;
        position: relative;
        border-bottom: 1px solid #f37b1d;
        box-shadow: 0 -1px 1px #eee;
        background: #F85709;
    }
    .st_back {
        position: absolute;
        left: 10px;
        width: 30px;
        height: 30px;
    }
    .st_back a {
        float: left;
        width: 30px;
        height: 24px;
        margin-top: 3px;
        background: url(<?php echo $this->_tpl_vars['config']['weburl']; ?>
/templates/wap/images/st_user_ico.png) no-repeat 0 0;
        background-size: 355px auto;

    }
    .header_top .tit {
        padding: 0;
        margin: 0;
        color: #fff;
        height: 30px;
        line-height: 30px;
        text-align: center;
        font-size: 1.6rem;
        font-weight: 500;
    }
</style>
<div class="home_top clearfix header_top">
    <div class="st_back"><a href="javascript:;" onclick="javascript:history.go(-1);"></a></div>
    <h1 class="tit">待定信息</h1>
    <div class="user_login">
        <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/login.php">登录/</a>
        <a href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/register.php">注册</a>
    </div>
</div>

 <form method="post" action="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/?m=product&s=shop_reserve" onsubmit=" return check_data(); "  id="bookfrm" >
    <div class="m-main">
        <div class="buy-details-hd">
            <h2 id="show_name"><?php echo $this->_tpl_vars['product_info']['pname']; ?>
</h2>
        </div>
        <!--order start-->
        <div class="big_box big_boxn">
            <div class="order-dist">
                <h4 class="payment-title">
                    待定信息：
                </h4>
                <div class="order-dist-warp">
                    <div class="o_take_kuai shipping1_1"  >
                        <ul>
                            <li><label class="name">联系人：</label><div class="ob_input"><input type="text" name="user_name" id="user_name" class="com_ipt" placeholder="请输入姓名" value="" /></div></li>
                            <li><label class="name">手机号码：</label><div class="ob_input"><input type="text" name="user_mobile" id="user_mobile" class="com_ipt" placeholder="请输入手机号" value="" /></div></li>
                            <li><label class="name">数量：</label><div class="ob_input"><input type="text" name="num" id="num" class="com_ipt" placeholder="请输入数量" value="" /></div></li>
                            <li><label class="name">心里价位：</label><div class="ob_input"><input type="text" name="price" id="price" class="com_ipt" placeholder="请输入心里价位" value="" /></div></li>
                            <label class="name shouhuo">备注：</label><div class="ob_input"><textarea name="mark" id="mark" placeholder="请输入备注"  style="width:275px;height: 60px;border:1px solid #e5e5e5;"><?php echo $this->_tpl_vars['consignee']['address']; ?>
</textarea></div>
                        </ul>
                        <div class="order-tips">
                            <div class="order-tips-box">请详细填写以上信息</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!--order end-->
    </div>

    <div class="bom_fix_box">

        <a class="booking" href="javascript:;"> 提交订单</a>
        <input type="hidden" name="product_name" id="product_name" value="<?php echo $this->_tpl_vars['product_info']['pname']; ?>
" />
        <input type="hidden" name="product_id" id="product_id" value="<?php echo $this->_tpl_vars['product_info']['id']; ?>
" />
        <input type="hidden" name="act" value="reserve"/>
    </div>
</form>
</body>
<script language="JavaScript">


    function check_data(){
        var user_name = $("#user_name").val();
        var user_mobile = $("#user_mobile").val();
        var num = $("#num").val();
        var price = $("#price").val();
        var mark = $("#mark").val();

        if(user_name == ''){
            alert("请填写联系人");
            return false;
        } else if(user_mobile == '') {
            alert("请填写联系手机");
            return false;
        } else if(num == '') {
            alert("请填写数量");
            return false;
        } else if(price == '') {
            alert("请填写价格");
            return false;
        } else if(mark == '') {
            alert("请填写备注");
            return false;
        } else {
            return true;
        }

    }

    $(".booking").on("click",function(){
            $("#bookfrm").submit();
    });







</script>

</html>